Example: This example show how to access Imageinformation
import com.cete.dynamicpdf.merger.*;
public class MyClass{
public static void main(String args[]){
// Create PdfDocument object using the source PDF
PdfDocument pdf = new PdfDocument("[physicalpath]/Source.pdf");
// Get the information of all the images in the document
ImageInformation[] imageInformation = pdf.getImages();
// Read the PixelFormat of the images from the imageInformation array
PixelFormat pixelFormat = imageInformation[0].getPixelFormat();
// Read the BitsPerComponent of the images from the imageInformation array
int bitCount = imageInformation[0].getBitsPerComponent();
}
}